package com.ruoyi.framework.web.service;

import com.ruoyi.system.domain.SysDept;
import com.ruoyi.system.domain.SysDictData;
import com.ruoyi.system.service.ISysDeptService;
import com.ruoyi.system.service.ISysDictDataService;
import com.ruoyi.system.service.ISysDictTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * RuoYi首创 html调用 thymeleaf 实现字典读取
 * 
 * @author ruoyi
 */
@Service("dept")
public class DeptService
{
    @Autowired
   private ISysDeptService sysDeptService;

    /**
     * 根据字典类型查询字典数据信息
     *
     * @return 参数键值
     */
    public List<SysDept> getUnit()
    {
        return sysDeptService.selectUnit();
    }

    /**
     * 根据字典类型查询字典数据信息
     *
     * @return 参数键值
     */
    public List<SysDept> getDept(long unit)
    {
        return sysDeptService.selectDept(unit);
    }

}
